package com.elm_springboot_s.mapper;

import com.elm_springboot_s.pojo.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {
    
    @Select("SELECT * FROM business WHERE orderTypeId = #{orderTypeId}")
    List<Business> listBusinessByOrderTypeId(Integer orderTypeId);
    
    @Select("SELECT * FROM business WHERE businessId = #{businessId}")
    Business getBusinessById(Integer businessId);
} 